package com.adong.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code; // 错误响应码
    private String message; // 错误的消息
    private T data; // 成功返回的对象

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }
}
